/**
 * output package name
 */
package com.kingdee.eas.minghua.material.client;

import java.awt.event.*;
import org.apache.log4j.Logger;

import com.kingdee.bos.metadata.entity.FilterInfo;
import com.kingdee.bos.metadata.entity.FilterItemInfo;
import com.kingdee.bos.metadata.query.util.CompareType;
import com.kingdee.bos.ui.face.CoreUIObject;
import com.kingdee.bos.dao.IObjectValue;
import com.kingdee.eas.basedata.master.auxacct.GeneralAsstActType;
import com.kingdee.eas.framework.*;
import com.tool.simplecode.Compare;

/**
 * output class name
 */
public class QthtDocFilterUI extends AbstractQthtDocFilterUI
{
    private static final Logger logger = CoreUIObject.getLogger(QthtDocFilterUI.class);
    
    /**
     * output class constructor
     */
    public QthtDocFilterUI() throws Exception
    {
        super();
    }
    public FilterInfo getFilterInfo(){
    	FilterInfo filter=new FilterInfo();
    	if(htName.getText()!=null&&!"".equals(htName.getText())){
    		filter.getFilterItems().add(new FilterItemInfo("htmc",htName.getText(),CompareType.EQUALS));
    	}
    	if(htNumber.getValue()!=null&&!"".equals(htNumber.getValue())){
    		GeneralAsstActType gen=(GeneralAsstActType)htNumber.getValue();
    		if(gen!=null){
    			filter.getFilterItems().add(new FilterItemInfo("htbhs.number.id",gen,CompareType.EQUALS));
    		}
    	if(kDDatePicker1.getValue()!=null&&!"".equals(kDDatePicker1.getValue())){
    		filter.getFilterItems().add(new FilterItemInfo("qdrq",kDDatePicker1.getValue(),CompareType.EQUALS));
    	}
    	}
    	return filter;
    }
    /**
     * output storeFields method
     */
    public void storeFields()
    {
        super.storeFields();
    }

}